POV-Ray : Newsgroups : povray.newusers : pigment relative to normal vector? : pigment relative to normal vector? Server Time
4 Sep 2024 18:17:49 EDT (-0400)
  pigment relative to normal vector?  
From: Justin Smith
Date: 9 Oct 2002 22:40:05
Message: <web.3da4e854a8bbf4f436ff7d20@news.povray.org>
This probably can't be done, but I want to be sure. Is there a way to assign
some kind of color_map to an object so that the actual color depends on the
vector of the surface normal? For example, if I were using a mountain
surface and I wanted realistic snow fields on it, it would be useful to be
able to have the parts with surface normals pointing mostly up to be
colored white, and parts with the up part of the vector ~ 0 to be colored a
stone-like shade, since snow would mostly collect in the ravines and not on
the sides of the cliffs.

-Justin Smith


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.